import { goodsDetailsApi } from "../../apis/goodsApi"
import router from "../../router"

export default async function detEvt(id: string) {
    let res = await goodsDetailsApi(id)
    sessionStorage.setItem('goodsId', res.data.id)
    router.push('/details')
}